package com.gsta.cdn.cdr.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.gsta.cdn.cdr.entity.ChannelConcurrent;
import com.gsta.cdn.cdr.entity.ResultEntity;
import com.gsta.cdn.cdr.mapper.CIDCompleteMapper;
import com.gsta.cdn.cdr.mapper.CIDConcurrentMapper;
import com.gsta.cdn.cdr.service.CIDCompleteService;
import com.gsta.cdn.cdr.service.CIDConcurrentService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CIDCompleteServiceImpl extends ServiceImpl<CIDCompleteMapper, ResultEntity> implements CIDCompleteService {

    @Override
    public List<Map<String, Object>> CIDCompleteAll(String date,int page, int pageSize) {
        page= (page-1) * pageSize;
        return baseMapper.CIDCompleteAll(date,page,pageSize);
    }

    @Override
    public List<Map<String, Object>> CIDCompleteArea(String date) {
        return baseMapper.CIDCompleteArea(date);
    }

    @Override
    public List<Map<String, Object>> CIDCompleteByArea(String date, String area, int page, int pageSize) {
        page= (page-1) * pageSize;
        return baseMapper.CIDCompleteByArea(date,area,page,pageSize);
    }

    @Override
    public List<Map<String, Object>> CIDCompleteAreaPopName(String date, String area) {
        return baseMapper.CIDCompleteAreaPopName(date,area);
    }

    @Override
    public List<Map<String, Object>> CIDCompleteByAreaPopName(String date, String area, String popName, int page, int pageSize) {
        page= (page-1) * pageSize;
        return baseMapper.CIDCompleteByAreaPopName(date,area,popName,page,pageSize);
    }

    @Override
    public List<Map<String, Object>> CIDCompleteByPopName(String date, String popName, int page, int pageSize) {
        page= (page-1) * pageSize;
        return baseMapper.CIDCompleteByPopName(date,popName,page,pageSize);
    }

}
